/**
 * 商家入驻
 * @param {*} data
 * @param {*} options
 * @return {Promise<*>}
 */
export function join(data = {}, options = {}) {
	return wx.$http.post('store/join', data, options);
}

/**
 * 我的客户
 * @param {*} data
 * @param {*} options
 * @return {Promise<*>}
 */
export function myOrderList(data = {}, options = {}) {
	return wx.$http.get('order/listsByStore', data, options).then(function(res) {
		return res.data;
	});
}

/**
 * 提现列表
 * @param {*} data
 * @param {*} options
 * @return {Promise<*>}
 */
export function cashList(data = {}, options = {}) {
	return wx.$http.get('cash/lists', data, options).then(function(res) {
		return res.data;
	});
}

/**
 * 提现申请
 * @param {*} data
 * @param {*} options
 * @return {Promise<*>}
 */
export function cashApply(data = {}, options = {}) {
	return wx.$http.post('cash/apply', data, options).then(function(res) {
		return res.data;
	});
}
